var list_js_loaded = true;

$.getJSON("/py/list_projects.py", function(data) {
	var cnt = $("#project_list");
	for(var x in data.projects){
		var project = data.projects[x];
			var new_ele = $("div.model_cnt .intro_model").clone(false);
			new_ele.find(".version").text(project.latest);
			new_ele.find(".project_name").text(project.name);
			new_ele.find(".intro").text(project.info);
			new_ele.find("img").attr('src','/py/getlogo.py?project='+project.name);
			new_ele.find("a").attr('href','/codycat/index.php/project/info/'+project.name);
			new_ele.appendTo(cnt);
	}
});
